package com.suzhuoke.ncpsy.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author RobinYoung10
 * @since 2019-02-17
 */
@TableName("tb_ncp")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Ncp extends Model<Ncp> {

    private static final long serialVersionUID = 1L;

    private String ncpid;

    private String ncpmc;

    private String cd;

    private String pz;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date ccrq;

    private String zzfs;

    private String qyid;

    private String ewmid;
    private String hash;
    private String hashTwo;
    /**溯源模板id*/
    private Integer tId;
    /**农产品批次号*/
    private String batchNo;
    /**0代表正常1代表已删除*/
    private Integer state;
    /**模板信息*/
    @TableField(exist = false)
    private Tp tp;
}
